package com.ph.shopping.facade.supplier.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import com.ph.shopping.common.core.base.BaseEntity;

/**
 * 
 * @项目：phshopping-facade-supplier
 *
 * @描述：供应商后台图片实体
 *
 * @作者： liuy
 *
 * @创建时间：2017年3月16日
 *
 * @Copyright @2017 by liuy
 */
@Table(name="ph_supplier_image")
public class SupplierImage   extends BaseEntity  implements Serializable{

    /**
	 * 
	 */
	private static final long serialVersionUID = 4090308709673693246L;

	/** 图片路径 */
	@Column(name="url")
	@NotBlank(message="[图片路径]不可为空")
   	@Length(max=100,message="[图片路径]最大长度为100个字符")
    private String url;

    /** 供应商id */
	@Column(name="supplierId")
    private Long supplierId;

    /** 排序 */
	@Column(name="sort")
    private Integer sort;

    /** 图片类型 */
	@Column(name="type")
    private String type;

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}


	public Long getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(Long supplierId) {
		this.supplierId = supplierId;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	
}
